using System;
using OS.Infrastructure.Domain;
using OS.Infrastructure.NHibernate.Mappings;

namespace Domain.NHibernate.Mappings
{
    public class AccountMap : BaseMap<Account>
    {
        public AccountMap()
        {
           // Id(x => x.Id).GeneratedBy.Guid();
            Map(x => x.Name);
            Map(x => x.Password);
            HasMany(x => x.Urls)
                .KeyColumns.Add("ID")
                .Inverse()
                .Cascade.All();
        }


    }
}